package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. KMSZXGLSSJDao;
import com.capinfo.accumulation.model.accounting.mybist. KMSZXGLSSJ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.KMSZXGLSSJServiceI;

@Service("kMSZXGLSSJService")
public class  KMSZXGLSSJServiceImpl implements  KMSZXGLSSJServiceI {
	
	@Autowired
	 KMSZXGLSSJDao  kMSZXGLSSJDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.kMSZXGLSSJDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KMSZXGLSSJ record) {
		return this.kMSZXGLSSJDao.insertSelective(record);
	}

	@Override
	public KMSZXGLSSJ selectByPrimaryKey(String id) {
		return this.kMSZXGLSSJDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KMSZXGLSSJ record) {
		return this.kMSZXGLSSJDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<KMSZXGLSSJ> retList = this.kMSZXGLSSJDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
